/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package unp.sisEventos.business.imp;

import java.util.ArrayList;
import java.util.HashMap;
import unp.sisEventos.business.itf.EventoBusinessService;
import unp.sisEventos.dao.itf.EventoDaoService;
import unp.sisEventos.pojos.Evento;
import unp.sisEventos.pojos.TipoEvento;

/**
 *
 * @author AngelAndres
 */
public class EventoBusinessImp  implements EventoBusinessService {

    private EventoDaoService eventodaoservice;

    public void setEventodaoservice(EventoDaoService eventodaoservice) {
        this.eventodaoservice = eventodaoservice;
    }

    @Override
    public Evento getEvento(int id) {
        return eventodaoservice.getEvento(id);
    }

    @Override
    public ArrayList<Evento> getAllEvento() {
        return eventodaoservice.getAllEvento();
    }

    @Override
    public boolean insertarEvento(Evento evento) {
        return eventodaoservice.insertarEvento(evento);
    }

    @Override
    public ArrayList<TipoEvento> getAllTipoEvento() {
        return eventodaoservice.getAllTipoEvento();
    }

    @Override
    public boolean deleteEvento(HashMap<String,Integer> map) {
        return eventodaoservice.deleteEvento(map);
    }

    @Override
    public boolean updateEvento(Evento evento) {
        return eventodaoservice.updateEvento(evento);
    }
}
